# Contributor: mio <miyopan@e.email>
# Maintainer: mio <miyopan@e.email>
pkgname=ibus-rime
pkgver=1.5.0
pkgrel=1
pkgdesc="Chinese input method Rime for IBus Framework"
url="https://github.com/rime/ibus-rime"
arch="all"
license="GPL-3.0-or-later"
makedepends="
	cmake
	ibus-dev
	libnotify-dev
	librime-dev
	samurai
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/rime/ibus-rime/archive/$pkgver.tar.gz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
59b05efe7d5c7dd6dd88a213f05967b19f4946ad0685e29c6c87fbc47ffb3059cc16c88403cfbb945bcbf8637b20d34dcfd91d442c23bb6a9a18d60febbaf27b  ibus-rime-1.5.0.tar.gz
"
